<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<script language="javascript" type="text/javascript" src="<%=request.getContextPath() %>/resources/niceforms.js"></script>
<%@ include file="/common/load_resources.jsp"%>
<title>Login</title>
</head>
<body>
	<c:if test="${not empty param.login_error}">
		<span class="actionError"> 
				<spring:message code="label.login.error"/><c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}" />.
				<br/><br/>
		</span>
	</c:if>
		<form method="POST" action="<c:url value="/j_spring_security_check" />" class="niceform" id="loginForm">
			<table>
				<tr>
					<td align="right"><spring:message code="label.login.username"/></td>
					<td><input type="text" name="j_username" /></td>
				</tr>
				<tr>
					<td align="right"><spring:message code="label.login.password"/></td>
					<td><input type="password" name="j_password" /></td>
				</tr>
				<tr>
					<td><a href="registerCorporation.do"><spring:message code="label.enrollFirm.Title"/></a> 
						<a href="registerUser.do"><spring:message code="label.enrollUser.Title"/></a></td>
					<td colspan="2" align="right"><input type="submit" value="<spring:message code="label.login.loginButton"/>" /></td>
				</tr>
			</table>
		</form>
</body>
</html>
